Fix bug with line counting in info tray, probably due to an angularjs change