Fix benchmark code