fixes to json model modifier stuff (fixes #565)