Fix data write config