fixed reading empty line