fix the crash when change screen orientation in memory clean