Attempt to fix kernel panics

Hopefully fixes the kernel panic caused by the patching