fix for path slice bug