fix json path to metadata