 He resigned as premier on 16 August 1923, after just after a year in office.After losing the premiership, Hayes nominated to fill the casual vacancy caused by the death of Senator Thomas Bakhap.He was elected only narrowly, beginning his term on 12 September 1923.