fixed bug where sequences with the same label may get overwritten