fixing split path bug