Dam, fix wrong typing method.