Fix relation match not working.