Fixed bugs related to numLines