Fix bug on getOtherTargets.