Attempting to fix a major bug.

Attemptingt to fix a conflit with donotdestroyonload.