fixed recursion reference issue with source directory