fix for null previous paths