fix duck typing for the case where file_number is zero...