fixed a bug with concatenate(List[State])