Fix bug where it stores multiple ratings