fix a problem compiling when switching versions