fixing p errs