fixed a bug happen whit -i