Fixed a bug

Fixed a bug - mistyped var name