Fixed issue with disappearing primitives.