fix path of target entity