Fixed a bad reference to scene object.