Fix bi-di relationships to media (#2128)