Fixed a bug with an old variable name

There is a bug in the latest update which causes connections to fail, this fixes that.