I recommend dropping the -i option and just use -w, which appears to work even if there is only one input range given after changes.