Fix #30: use the last line as current result

fix #30