Fix media end firing too soon.