fix bug drawTic