Fix bug with rating