fix maxSize constraint