Clear errors before prepare