Fixed OutOfMemory crash