fix for php notice.