Fixed a bug with an old variable name