Fix for Bug#3757: All dimension values are 0 after release is called
Merge pull request #2891 from nisargthakkar:dims_zero_on_release