Fix issue in getDirectEquivInstance