Fixes map loading.