fixing home page errors