Fixed bug: create empty index in root directory too