fix #365 parsing media limit