Fix relation table