fixed main page bug