In reply to Sharandiva:
You need to show a complete example. I’m not seeing your problem with my code.