Fixed segmentation fault issue with multiple calls to get_path.