added a workaround to an issue related with CppAD checks in the reverse mode of atomic functions