fix defectdraw bug