fix some path bugs