Fixed crash in text input resizing