fix error page stuff