Fixed bug in directory page