Fix changeRating bug + tidy