minor fixes mediaLimit
Merge pull request #321 from arnaudbey/fixesMediaLimit

minor fixes mediaLimit