Fixed total results calculation