change attribute that the error message was added