maxSize bug fix.