fixing path reading