fixed some php warning