custom input file fix