Fixed php warning