Calibration of x-axis moves to wrong direction

Hello,

i have to do a project for my university regarding the Farmbot. For that, I want to use the Python API to do the homing and calibration on all axes. The homing works without any errors, the calibration is the part where things doesn’t work anymore.
The calibration of the y and z-axes goes as expected. After the homing, the farmbot moves to the other end of the axis and stops there. When the calibration of the x-axis is running, the farmbot moves to the homing point, instead of the other end of the axis. This results in the x-axis being only a few millimeters long. This result of the calibration is also displayed in the farmbot web app. The same thing happens, when I start the calibration of the axis via the web app. y and z axis move from the homing point to the other end of the axis, the x-axis moves to the direction of the homing. When I manually move the farmbot to the end of the x-axis and press the calibration of the x-axis, it moves to the homing point and the length of the x-axis is correctly displayed in the web app.

What could be the cause, that the farmbot moves in the wrong direction, when calibrating the x-axis?

When i enter coordinates, the farmbot should move to (e.g. x: 800), it moves from the home point in the expected direction. Only when performing the calibration, the farmbot moves along the x-axis in the wrong direction.

Would be happy of any tips that might work;)
Thanks in advance!