fixed type check with grouped types