Bug for append file fixed