Fix bugs while importing serial numbers from files