Fixed bugs in the rating form