Feature/debug election crash