Fix alias type check