fixed some path bugs