fix relationship creation