Fixed handling of sequences with comments