fix fetching relations