fixed bezier pen tool functionality