fix authentication problem