Make values assignment atomic