Use correct axis order in write