fixing path deconstructing bug