fixed up-axis decoding