Fixed map closing crash