Fixed bug with orientaton.