fix on relationship search for inactive