fix index error in hasSource link and umcmmt the hasSource creation