Fixed the bug. going back to map doesn't crash anymore