Problems with pause command

I have an Um2 extended. Everythings works just fine, but when pause the print the extruder is not homing corretly. It tries to go further on the x axis as possible and crashes into the rods. When I resume the print it continues 1 cm away form where I paused.