fixed a sequence problem