Fixed bug of media APIs