bugfixing for json schemas