fixed calculation of result list size