Fix relationship type validation