Fix metadata dependencies