Fix problem when rotating screen at other page than the first one