Fixed bug in home controller