fixed bug when non array file input is submitted