Add check for changes to be a dict, still need to track down

the vialating state