Error attribute fix

Fix for error attribute spam