bug fix for formating controller in routes