Bugfix: entity type was not being passed to modal window.