Fix if structure.