Fix bug in creating folder in index page