Fixed double print issue when no arguments are passed.