fixes #2294