Ratings Fix

The math behind the ratings get messed up when its int type.