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