fix path bugs