fixes #3046