fix ctxpath