fix reversed axis issue