Bug fix (last write to history was not using workflow variable to disable it if needed)