Fix setting size of Entity.