fix layer/map exit confirmation