Temporary fix for media library loading in a loop.

References #157