avoid php warning