fixed clearTimeout bug