Reinit internal state of select_unit before using to correctly run it after first time.
Attach a file by drag & drop or click to upload