fixes #2980