Prepatcher now works again without multiple passes.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>