* fix bugs for php notice.