Fixed a bug in perftest (was asserted in debug)