bug fix. orientation is causing trouble