Fixed the error in Controllers