fix file input error