Fix duplicated results in CMD