Fix CAS initialization (issue #3862)