correct errors to make pages render