Refresh entity before the next update

Changed code in EntityManager when adding or removing components