Bugfix: crash when text field in gui being empty