fix for pathinfo.