Release 1.0.1: fix bugs related to out of memory errors.