Bugfix: honor maxSize when the value is already that long.