fix some auth problem