uaa fix

Fixes last commit.
Else UAA will fail silently with 500 responses.