fix exploreDirectory

changed the "==" to "=" in order for exploreDirectory to work properly