Fixes auth bug