fixes #2941