fixed errors on the pages