fixing temp pathname