Attempted to fix the rating but still has a bug