Fix sequence order