fix missing clearImmediate