Fix video player crash issue