fix of draw bug