Fix bug of input box not cleared after switch panel commands