Fix php warning