fixed some path bugs.