fix auth initialization