fix relations get_attribute