fixed bug in weightedTarget and weightedSource