Fixed the outOfMemoryError being experience by some devices