Refine relation map