fixed a but that string cannot be casted to sequence