resolves #2952

Seems, that it fixes the issue