bug in close function in map creator window