Fix metadata path error