client: fix hijack behavior

Related to 9bfe329389e8b87f98dc79dd2849c4af40196c29.