Fix template condition to keep tests passing.