Thanks for this. I spent half a day trying to work around this issue and your answer solved it for me in 2 mins.