Stupid bug with input file name is solved