Fixed bug in report #3346

New pull request based on 2.4 and not master branch.