Fixed possible error when giving the program the same number twice