Fixed an issue with loading controllers