Fix for issue #97

Fix out of memory problem when reading large jobs. See issue #97 for detail.