fix phi cycle detection getting confused by non-relevant values