Small potential fix to loading-thread freezing.