ticket:4 fix bug with change orientation