Move parser errors reset fix to parser module