Fix bounds when choosing random internal node