Fix file rename issue in add task