fixes alert msg when input file lenght is 0