Fix bug with Max size