Fix wrong to_i