fixed non-atomic set