fix enforcement of media limit