Fixed main page error