Fixed bug with cardinality.
Merge pull request #374 from 28msec/SequenceOfEntitiesBug

Fixed bug with cardinality.