fixed CU_SAFE_CALL