fix findNextTarget
Merge pull request #375 from voxelinc/findNextTarget_fix

Fix findNextTarget