fix typo in benchmark; fix empty query result exception