fixes php notices