Fixed clearInterval bug