fixes #2650