resolve bug regarding updating path