fix authentication issue