Refactored ApplyBsd0Patch hoping to fix the bug... failed too