fixed screen updating bug