fixed switch concurrency and invisible hook