Fixed php notice error.