Result in result/result.txt and fix null ref
Fix result dir