fixed addEntity