fix usage of check:getType()
Merge pull request #425 from rjemanuele/fix_getType_use

fix usage of check:getType()