Changed bugs in controllers.