fix atomic for older version