fix bug with enumerating small data