modify jsdraw bug