fix the LongSequenceEntity factory