Fixed WaitForMedia.