Avoid that the entity go out of the board