fix duplicated dep of shared Res