Fix misaligned if/else in granularity configuration.