Minor fix in directory app (bug #2322)