Fixed error that caused objects in components to be shared across entities.