fixed the error of finding the hints when both buckets are filled