Found where my problem was. I had changed a variable name, but hadn't changed it in all locations. The rating should populate properly now since the for loop can now run it's full course.