fix typo

effectively, if you use %i it makes more sens to cast as int