fix draw bug