Updated logic, repeat calls getNum()

Fixed repeat to call getNum() in LineNumber