try to fix outOfMemory issue