Fixing php notices