Revert "Fixed bug of media module"

This reverts commit 56b239462609a343593ba40767fcf0e3f461e0ce.