Be sure that self.max_length is in