Fix for ratings widgets not working after running unit tests

I'm not even going to explain how it works, that's how much you shouldn't even care.