Patching rem conversion