Fix if check.