fixes php warning