Bugfix: Crash when building outside of the map