fixing object detection; "save action" doesn't go out of edit mode