Fix video rendering issue