fixed inverse_relationships

Signed-off-by: Michele Salvini <info@slv.dj>