Fix atomic access