fixing php notices