correct the auto-complete dir contains blanks bug