Fix crash when exit area generated outside map