fixed a PAR bug from master & adapted for video