Fix small bug when select no vertices for constraint