Fix bug in repeatedly parsing