fix open dir warnings