Fix for multiple route bug in controllers.