Added flush to all writes because of bad updates