fixed bug in rating system after adding pagination