fixed the error on playing a video