Fixing clearInterval Bug