fixed repeat parsing