fix incorrect arc painting in awt