bug fix in text input clip rect