fix multiple sources/targets
fix possibly os-specific crash (currentStat === null)