Fixed bug with duplicate entity IDs

Removed unnecessary tree update.