Fix saving of rating