Fixed a bug that duplicated invalid errors