fix cas operation on missing value.