Fixed bug that prevented the -n flag from working properly