Fixed issue with double slash in metadata path