fixes #4950