https://github.com/pluginaweek/state_machine/issues/246