Fixed bugs in home page inference