return correct enum name

Fixes #68