Fixed bug with only directories menu entry