required_sum is not an instance variable

When building a box with the flag ``--checksum`` an error happens because ``self.required_sum`` is undefined.