Hi Inger, First of all, let me warn you that I am not an expert, but simply someone who tries to help whenever possible. Having said that, I believe that your sentence makes use of the concept of notional concord (also known as notional agreement). See this link for an explanation and some good examples.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.