Fixed andFlush parameter in MediaManager never being used.