Thanks for the reply!

I've just tried your solution, but now I get two "Invalid arguments" errors!

Could this be a bug?