Bugfix: Script error when creating object from autocomplete