fix for typing in a text field crash