fixed an issue with adding items to the attribute and reason dictionaries