fix type detection
vars should match
Merge pull request #22 from ngoldman/patch-1

fix type detection