Fixed one liner in type check