Sequence fixes, still do not understand how it works