Fix comparison with model value after sanitize