bug fixed for media uri