fixed bug in the controllers file