fix specs
introduced more specific error when statistics are not ready