fix example_patchmrf bugs