fix append for pinning file