fix failing of mediastream