fixed exception bug in object.php