Fix variable misuse when prompting to input