Fixed bug with reading empty lines