fix arc direction when transforming arcs, ellipses