Fix a regression with adding a new file not working