fix if model