Fixed error page bug