Fixed minor bug when switching versions