fix bug in directory detail display