fixed problem with reading number of lines from CL