Make the line counter accurate