fixed direction check when FGT has inverse of and also declared
features. Should not invert the direction.
Merge remote-tracking branch 'origin/develop' into develop