Fixes iusse #493
The old code is commented out.
It was first following the inverse and then did the comparison.
It shoudl only do that if the normal check fails and both elements are
inverse of.
Merge remote-tracking branch 'origin/develop' into develop