Fixed a bug where line number was nil