Fixing ratings

Suggested fix for issue #5937