fix for JSON accessor bug