a mechanical mate

hi

i have a Rack and pinion and my problem is when the Pinion is fixed and Rack is floated all complex work

but when the Rack is fixed and Pinion floats all complex is fixed and not working

please take a look at attachment

SolidworksAssemblies