fixes authorization error