fix bugs on null_object and stack underflow