Bugfix: passing the entity type in the location view script.