Fixing merge and split actions in controller.