fixing path bug