Fixing for snap 1.0 (where Snap.Types is removed)

Not sure if this is the right fix, but it was broken and this seems to work.