first fix for json metadat