fixing php warning