Fixed bugs in benchmarks.

Signed-off-by: Alex <alex@centromere.net>
(cherry picked from commit 95ba670644cd282be5f57aef9f67dc80075c4357)