fixed typos in controller