fixed a bug with the path resolver removing the child chain even in cases it should not