Fixed warnings from PHP