Gear, Rack-Pinion assembly.

I'm having problem during assemble rack-pinion and gear mashup. They are colliding to each other after assembled from mechanical mate option. Can anyone help me to sort out this problem?