Fixed error where you have no ports and it doesn't clear the last one
build