Fixed minor setType issue
Merge pull request #2 from KristerV/patch-1

Fixed minor setType issue