Clear cin, to prevent an infinite loop.