This is the same code that we use internally so it should work, to go further, you should create a repro in the sandbox.