fixes #2252