fixes #2868