fixing php notice, #284