fix file append