Fix transition error handling