Fix bug which losses checked JSON defs.