fix wrong long kind pattern matches