avoid undefined entities