Fix dictionarize_attributes that has moved