I have tested this fix with the script mentioned in the test section and everything is worked as expected
I have tested this fix with the script mentioned in the test section and everything is worked as expected