fixed error when rating is missing