bug fix in switch between software and hardware video rendering