Fix stylesheet problens on changing orientation