Fix issue with loop at home page