Fixed accidentally duplicated call to maxsize()