fixed crashing upon screen rotation