choosedirectory fix