fixed error in home controller