fix some file path bugs