fixed inverted param
fixed regression matching generic type count