bug fix for paths