Fix bug with object id