Fixed duplicate lines count