Stepper motors changing direction during homing function?

Have you solved the problem? I'm doing the same but moving horizontally. At the moment I have only a single home switch hoping that both motors will go always in sync. I'll let you know.