Fix bug that would not clean password in terminal