Fixed nontype check