Fix auth handler