Solving home page bug