Fixed Java Heap error.