Fix dired initialization bug