Bright Osayi-Samuel inspired QPR to a 3-2 victory over Rotherham.
But two goals in first-half injury time proved decisive for the Rs.
Freddie Ladapo pulled a goal back with six minutes remaining but Rangers held out for the win despite some uncomfortable moments in the final stages.
Osayi-Samuel was outstanding for the hosts and almost gave them an early lead when he fired against the outside of the post.
It was a temporary reprieve for Rotherham, who have now lost three of their past four matches.
Osayi-Samuel set up the opener, retrieving Chris Willock's left-wing cross and then tricking his way inside to tee up Chair, whose deflected shot brought the Moroccan's second goal in as many games.
QPR conceded 76 goals last season and though they have been better defensively this term, they remain vulnerable.
The 17th they have shipped this season came after Willock, who was otherwise impressive, miscued an attempted volleyed clearance near his own penalty area.
They remained level despite a glorious chance falling to Osayi-Samuel, whose shot from point-blank range after good work by Chair was diverted onto the post by Angus MacDonald.
Osayi-Samuel made amends with a superb goal to restore the home side's lead.
And when Barlaser inexplicably handled the ball when under limited pressure from Chair, Scotland striker Dykes helped himself to his fourth goal since joining QPR during the summer – all of them have come from the penalty spot.
The second half was much less eventful and Rotherham were glad to see the back of Osayi-Samuel, who continued to worry them before being taken off late on.