fixed a couple of problems with DirSelect class