Fixed bugs with new entity updating system.