bug fix $safe of object