fixed bug, sending wrong value for orientation