Fix misaligned if/else block about granularity.