fixed bug when appear