Fix wrong dependencies for relation match task.