main page has error