Clean up hijack

Fixes cane warnings in hijack middleware