fixed main page error