Fix warnings.
Clear input after a successful process.