fixed main page errors