Fix PatchEditor construction.