fix the issue of wrong path