fix slow boot  and GUI thanks to chautruongthinh