Fix write variable in version 3