fixed: reading empty lines in target file generated error