fix error with locals in partial matching helper