added fix for broken json - wordref issue workaround