Fixing append bug for store files.