fixed the path bug