fixed rebuilding a function and expand text on

focus