fix election not comitted when creating it