quick fix, inverted registration conditionn