pathname fix