fix $objects bug