Change merge to filter inherited properties.