bugfix: the "maxsize" option of new() was broken.
Merge pull request #8 from agentzh/master

bugfix: the "maxsize" option of new() was broken.