fix to mode bug when more than one number repeat but one repeats more times than the other