Fix a bug of parsing empty line