Fix a bug where the branch folder is empty