prevent Got empty input file/stream
remove debug