Fixed bug when not using the -i flag