I know, but I'm not sure there is another way of doing it.
I added a comment to explain what/why.