fix map preview in edit mode