Fixing node out of memory issues