fix error in home controller