Bug fix for getmediaonly