fix small bug when user path directory field inside target path