Fix video rendering issue, close #4