Fixed bug in which nonexistent object referred-to