fix dir scanner