Fixing compare and swap.