fixed the path not returning