fix if expression