Fixed a lingering 'length' variable.