reset errors when it works