Result double writing bug fixed.