fixed exception on device rotation