fix bug for folder rename