Fixed a bug when redrawing.