fix drawPoint bug