Catch getType

Hopefully fixes #19