fix path/closing