Fixed bugs in json catalog