fixed undefined to_i on class vs instance comparison. raise argument error: comparison failed