Fix stop event checking.