Update the entity reference module.

Relate to issue #1420