Fix php warnnings