fix credentials missing error