fix display problem when folder is empty