Fixed bug in rating.