draw bug fix