fix firstboot bug