more fixes for the patching stuff (was testing it on the wrong target)