Fix 'atomic_read' function