Fixed issue with -i being added twice.