Fixed a bug with fragments not showing when changing orientation