Fixed bug in directory detail view