fixes bug with auth server side