fixed %i string format bug