[FIX] use safe_eval instead of const_eval