[fix] Call the correct write method.