fixed some php strict notices