Removes duplicate errors