reduce nLimit to 1000 to prevent bad alloc