what's with the empty single-quoted string after `-i`? I think that's your bug