fix deterministic