Software endstop for Marlin 2.0

I’m using Marlin 2.0 for my printer and thought that it would prevent from crossing the bed level. But obviously it does not. So maybe I missed something? My config looks like

Config

// The size of the printable area
#define X_BED_SIZE 226
#define Y_BED_SIZE 225

#define MIN_SOFTWARE_ENDSTOPS
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z

#endif

// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
#define MAX_SOFTWARE_ENDSTOP_X
#define MAX_SOFTWARE_ENDSTOP_Y
#define MAX_SOFTWARE_ENDSTOP_Z

#endif

When issueing a M211 I get this response:

[[’ M211 S1 ; ON\n’, ’ Min: X0.00 Y0.00 Z0.00 Max: X226.00 Y225.00 Z189.00\n’]]

When I send a G1X230 it moves beyond the 226 and the printer crunches teeth for a moment :frowning:

So why does it move beyond the set limits?