Try to fix URL reversing error on error page