dir exception fixed