bug in Interleave function