fix the hanging/lackscreen problem