fixes #4791