fix getpatternProperties