fixed bug where first time in details page would not update rating because previousRating was null