fixed hang condition when file inputs arent given a value