Fixed output
Fixed bug in selfWork: could find result file