low memory app kill fixed

Fixed bug that crashed app on low RAM memory.