Fixes crash after random map generation.