You are messing yourself back and forth through the settings and now it is a bug? Highly unlikely.
- Follow Configuration checks - Klipper documentation as @jakep_82 already indicated
- Verify your endstops positions, position_min and position_max settings as they seem a mile off. Also see Understanding X and Y Axes Limits and Homing