Fixed nasty sequencing bug