fix missing brackets in check for old version var