fix bug relation inverse