reset error before parse