fixed video capturing issue