fix missing index linenum bug
small changes
fix CPU usage high bug, close #17