Fixed -i option bug in appropriate manner.