fix if block