Fixing php notice