fixed problems with crash on orientation change while loading