Fixing bug where gap wasn't merged with sequence