critical bugfix, reset numLines