Fixed php strict errors.