fixed -1 issue on total hits