Correcting for php errs