fixed errors in sending the rating