Fix for syntax error in RegisterException.