I've recently seen the sentence with the verb ärgern while learning relative clauses with wer and was. The sentence is as follows:
Manche kommen spät zur Arbeit, was der Chef sehr ärgert.
As you can see, here the definite article der is used instead of den. Is this sentence correct and shouldn't the definite article for Chef be in the accusative case in this instance?