Fix for incorrect pathinfo

We should only reset the path_info if it doesnt already exist.