fixes #2877