fixed a bug for video