fix bug in homeController