fix for usertype check