Fix for error when attempting to authorize on some systems