fixed bug in display thread