Fixed Bug 45149
Merge pull request #175 from pravee-n/bug45149

Fixed Bug 45149 (Issue #174)

Tested on Windows and Linux. Thanks for the patch.