fix bug for adding new files