Fixing a bug where a put on stores.xml should atomically replace all the existing stores state