Annotate the assignment of the  variable
Use safer syntax for accessing variable field names
Entity creation now correctly assigns  variable