Corrected an issue with interaction between box() and the orientation parameter