fix path bugs.