fix relations object