fix authentication setting