Fixed issue with feature group and direction in case of inverse. We had
dealt with it twice.