fix a draw bug when sleep