fix text cache updating
remove unused var
input field draft