fix bug in GetVersion Method