fix coordinate order and required pattern in transform tool