completed #46 set terminal version

*set terminal latest version where terminal_verion_id  is nil