fixes an issue with partialbuilder, infinite loop