Fixed first select

checked for nullity of selected unit.