[fixes #2697]