Fix write for boolean automation.