Fixed bug introduced by new root selection code.