fixed a clearTimeout timing bug.