Change gettype check