Fix transition error handling

Fixes #69