Fix layout issue on orientation change.