minor fixes mediaLimit