minor fixes in controllers