Fix error in MediaManager