fix bad variable reference for version check