fix rating bug