fix map in edit window