Fixing a potential path bug