fixed cyclical cdpath bug