fix hanging issue when hijack is enabled