fix benchmark bugs