Fix the out of memory problem: http://jira.madlib.net/browse/PIVOTAL-170