Fix sequences properly