Fixed IEntity bug.