fix that only the first button is primary