fix for nested partial in a conditional