fixing path bugs