Fix name not being set in text field