<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rectified(self):
 """ Fixes swaped min-max pairs. """

        return Rect(np.minimum(self.mins, self.maxes),
                    np.maximum(self.maxes, self.mins))