fixed potential segfaults in createSeqArgs