Fix GUI upgrade bug introduced in c1e3e8a1128cc10c