fixed (at least one) file handle leak