Fix a lot of @if issues.