Removing unnecessary error attributes