fixed bug in write run result