Fixed bug when no lines match