Fixed a busted type check