Fix auth system