fixed bug with rating not stored