fixing index page errors