fixed bug in parsing several empty lines in a row