fix current path bug