Fixed bug in snap edit controller.