Fixed regression bug in repo/get-metadata