Save user ratings only after leaving the screen.
Fix average rating.