fix multiple setTimeouts.