Add constraint to not accept the same event twice on state_machine