Fix race condition in ratings view