Fix for invalid axis.orient. Fixes #905.