fixed bugs in draw_shape.pro