fix empty root class selection