Fixed lines < threads bug